import styled from 'styled-components';

const HomeWrapper = styled.div`
  /* 头部区域 */
  .head {
    height: 55px;
    padding: 10px 15px;
    .mounth-box {
      border-right: 1px solid #ccc;
      padding-right: 15px;

      .day {
        font-size: 18px;
      }
      .mounth {
        font-size: 12px;
      }
    }

    .title-box {
      flex: 1;
      align-items: center;
      justify-content: space-between;
      padding-left: 12px;

      .title {
        font-size: 20px;
      }

      .avatar {
        width: 32px;
        height: 32px;
        border-radius: 50%;
      }
    }
  }
  /* 轮播图区域 */
  .swiper-box {
    .adm-swiper-indicator {
      left: unset;
      right: 0;
      bottom: 12px;
      .adm-page-indicator-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        margin-right: 5px;
        transition: width 0.1s;
        &:last-child {
          margin-right: 0;
        }
      }
      .adm-page-indicator-dot-active {
        width: 20px;
        border-radius: 10px;
        background-color: #fff;
      }
    }

    .swiper-item {
      position: relative;
      .banner-img {
        width: 100%;
      }

      .desc-box {
        position: absolute;
        bottom: 40px;
        font-size: 18px;
        color: #fff;
        text-align: justify;
        line-height: 1.5;
        padding: 0 20px;

        .desc-author {
          font-size: 14px;
          margin-top: 10px;
        }
      }
    }
  }

  .more {
    height: 44px;
    color: #424242;
    line-height: 44px;
    text-align: center;
    background-color: #ccc;
  }
`;

export default HomeWrapper;
